export function formatTime(value) {
    console.log(value);
    let dt = new Date(value);
    let years = dt.getFullYear().toString().padStart(2, 0);
    let month = (dt.getMonth() + 1).toString().padStart(2, 0);
    let date = dt.getDay().toString().padStart(2, 0);
    let hours = dt.getHours().toString().padStart(2, 0);
    let minutes = dt.getMinutes().toString().padStart(2, 0);
    let seconds = dt.getSeconds().toString().padStart(2, 0);
    return `${years}-${month}-${date} ${hours}:${minutes}:${seconds}`
}